﻿cmake_minimum_required(VERSION 3.10)
project(recovered)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 指定 OpenCV 库路径
set(OpenCV_DIR "D:/opencv/opencv/build") 
find_package(OpenCV REQUIRED)
find_package(OpenCV REQUIRED COMPONENTS core)

# 添加可执行文件
add_executable(recovered main.cpp)

# 链接 OpenCV 库
target_link_libraries(recovered ${OpenCV_LIBS})


# 包含 OpenCV 头文件路径
include_directories(${OpenCV_INCLUDE_DIRS})
